# -*- coding: utf-8 -*-
from django import template
register = template.Library()
 
@register.filter("getfileurlaspdf")
def getfileurlaspdf(url):
    filename = url.rsplit('.',1)
    filename= filename[0] + ".pdf"
    return filename